﻿package com.projects.xenia.add_activities;

import com.projects.xenia.R;
import com.projects.xenia.R.id;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.webkit.WebSettings;
import android.webkit.WebView;

public class Activity_ExtReportsHTML extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		requestWindowFeature(Window.FEATURE_NO_TITLE);            
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
	
		setContentView(R.layout.report_html_form);
		
		Bundle DocExtras;
		DocExtras = getIntent().getExtras();
		
		String HtmlString = DocExtras.getString("HtmlString"); 
		
		
		WebView Wb = (WebView)findViewById(id.webView1);		
		WebSettings settings = Wb.getSettings();
		settings.setBuiltInZoomControls(true);
		settings.setDefaultTextEncodingName("utf-8");		
		Wb.loadData(HtmlString, "text/html; charset=utf-8", null);
				
		
	
	}
	

}
